package com.example.springboot.enums;

import java.time.DayOfWeek;
import java.util.Arrays;
import java.util.Timer;

import static com.example.springboot.enums.Employee.LEADEr;

/**
 * TODO
 *
 * @author qibao
 * @version v0.1 2020/12/1
 */
public class EnumsTest {
    public static void main(String[] args) {
        Arrays.asList(Employee.values()).stream().sorted().forEach(x -> System.out.println(x.toString()));
        System.out.println("----------------------------------");
        Arrays.asList(Employee.values()).stream().sorted((e1, e2) -> e1.name().compareTo(e2.name())).forEach(x -> System.out.println(x.toString()));
        System.out.println("----------------------------------");
    }
}
